//
//  ResultsViewController.m
//  RosettaApplication2
//
//  Created by Taylor White on 11/21/13.
//  Copyright (c) 2013 Miami University. All rights reserved.

#import "ResultsViewController.h"

@interface ResultsViewController ()

@end

@implementation ResultsViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        self.navigationItem.hidesBackButton = YES;

    }
    return self;
}




- (void)viewDidLoad
{
    [super viewDidLoad];
    UIColor* rosettaBlue = [UIColor colorWithRed:0x00/255.0f
                                           green:0xCD/255.0f
                                            blue:0xFF/255.0f alpha:1];
    
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    
    
    NSString *name = [defaults objectForKey:@"name"];
    NSString *email = [defaults objectForKey:@"email"];
    NSString *thankLabel = @"Thank You for your Interest with Rosetta, ";
    NSString *thankLabel2 = @"!\nWe feel you are best fit for one of the following roles: ";
    UILabel *applyNowLabel = [[UILabel alloc] initWithFrame:CGRectMake(45, 550, 700, 500)];
    applyNowLabel.text = @"We've sent you an email detailing these opportunities. \nPlease make sure to apply online at rosetta.com!";
    UILabel *thankYouName = [[UILabel alloc] initWithFrame:CGRectMake(40, 150, 700, 500)];
    thankYouName.numberOfLines = 0;
    thankYouName.textAlignment = UITextAlignmentCenter;
    NSString *thankString = [NSString stringWithFormat:@"%@%@%@", thankLabel, name, thankLabel2];
    
    applyNowLabel.font = [UIFont systemFontOfSize:25];
    thankYouName.font = [UIFont systemFontOfSize:25];
    NSString *chosen0 = [defaults objectForKey:@"skill0"];
    NSString *chosen1 = [defaults objectForKey:@"skill1"];
    NSString *chosen2 = [defaults objectForKey:@"skill2"];
    
    
     //NSString *title0 = [defaults objectForKey:skill0];
    
    
    UILabel *chosenSkill0 = [[UILabel alloc] initWithFrame:CGRectMake(150, 250, 500, 500)];
    //chosenSkill0.text = chosen0;
    chosenSkill0.text = @"1. Planning Associate";
    chosenSkill0.textAlignment = UITextAlignmentCenter;
    
    UILabel *chosenSkill1 = [[UILabel alloc] initWithFrame:CGRectMake(150, 350, 500, 500)];
    //chosenSkill1.text = chosen1;
    chosenSkill1.text = @"2. Content Strategist";
    chosenSkill1.textAlignment = UITextAlignmentCenter;
    
    UILabel *chosenSkill2 = [[UILabel alloc] initWithFrame:CGRectMake(150, 450, 500, 500)];
    //chosenSkill2.text = chosen2;
    chosenSkill2.text = @"3. Copyright Associate";
    chosenSkill2.textAlignment = UITextAlignmentCenter;
    
    chosenSkill0.font = [UIFont systemFontOfSize:24];
    chosenSkill0.textColor = rosettaBlue;
    chosenSkill1.textColor = rosettaBlue;
    chosenSkill2.textColor = rosettaBlue;
    chosenSkill1.font = [UIFont systemFontOfSize:24];
    chosenSkill2.font = [UIFont systemFontOfSize:24];
    
    [self.view addSubview:chosenSkill0];
    [self.view addSubview:chosenSkill1];
    [self.view addSubview:chosenSkill2];
    
    
    
    thankYouName.text = thankString ;
    [self.view addSubview:thankYouName];
    applyNowLabel.textAlignment = UITextAlignmentCenter;
    applyNowLabel.numberOfLines = 0;
    [self.view addSubview:applyNowLabel];

	// Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
